package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    /**
     * 查询数据库是否存在 openid
     * @param openid
     * @return 返回查询的数据
     */

    @Select("select * from user where openid=#{openid}")
    User selectIsOpenId(String openid);

    void insertUser(User user);
}
